package com.zp.qualitypractice.Bean;

import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.Keep;

import java.io.Serializable;

/**
 * Created by izp on 2017/5/23.
 */
@Keep
public class Bill implements Serializable, Parcelable {
    /**
     * bill_proprice :
     * bill_invoicefilename :
     * bill_customer_name : 南方航空
     * bill_money : 5926.00
     * company_id : 0
     * bill_startdate : 2017-05-22
     * bill_status : 0
     * bill_paytype : 1
     * bill_proname :
     * bill_birthday : 2017-05-22
     * bill_owner_name : vicky
     * vicky : vicky
     * user_id : 177
     * customer_id : 561
     * bill_enddate : 2017-05-30
     * bill_prounit :
     * bill_costdays : 8
     * bill_desc :
     * bill_id : 651
     * bill_order_id :
     * product_info : [{"product_count":"69","product_id":"289","product_model":"大","product_name":"葛粉","product_picture":"","product_price":"80","product_size":"看","product_unit":"产"},{"product_count":"58","product_id":"290","product_model":"二两","product_name":"小面","product_picture":"","product_price":"7","product_size":"并","product_unit":"产"}]
     * bill_procount : null
     * bill_promodel :
     * bill_createtime : 2017-05-22 21:23:16
     */

    private String bill_proprice;
    private String bill_invoicefilename;
    private String bill_customer_name;
    private String bill_money;
    private Long company_id;
    private Long bill_id;

    private Long user_id;
    private Long customer_id;
    private int bill_costdays;
    private int bill_status;
    private int bill_paytype;
    private String bill_startdate;
    private String bill_proname;
    private String bill_birthday;
    private String bill_owner_name;
    private String bill_enddate;
    private String bill_prounit;

    private String bill_desc;

    private String bill_order_id;
    private String product_info;
    private String bill_procount;
    private String bill_promodel;
    private String bill_createtime;

    public String getBill_proprice() {
        return bill_proprice;
    }

    public Bill setBill_proprice(String bill_proprice) {
        this.bill_proprice = bill_proprice;
        return this;
    }

    public String getBill_invoicefilename() {
        return bill_invoicefilename;
    }

    public Bill setBill_invoicefilename(String bill_invoicefilename) {
        this.bill_invoicefilename = bill_invoicefilename;
        return this;
    }

    public String getBill_customer_name() {
        return bill_customer_name;
    }

    public Bill setBill_customer_name(String bill_customer_name) {
        this.bill_customer_name = bill_customer_name;
        return this;
    }

    public String getBill_money() {
        return bill_money;
    }

    public Bill setBill_money(String bill_money) {
        this.bill_money = bill_money;
        return this;
    }

    public Long getCompany_id() {
        return company_id;
    }

    public Bill setCompany_id(Long company_id) {
        this.company_id = company_id;
        return this;
    }

    public Long getBill_id() {
        return bill_id;
    }

    public Bill setBill_id(Long bill_id) {
        this.bill_id = bill_id;
        return this;
    }

    public Long getUser_id() {
        return user_id;
    }

    public Bill setUser_id(Long user_id) {
        this.user_id = user_id;
        return this;
    }

    public Long getCustomer_id() {
        return customer_id;
    }

    public Bill setCustomer_id(Long customer_id) {
        this.customer_id = customer_id;
        return this;
    }

    public int getBill_costdays() {
        return bill_costdays;
    }

    public Bill setBill_costdays(int bill_costdays) {
        this.bill_costdays = bill_costdays;
        return this;
    }

    public int getBill_status() {
        return bill_status;
    }

    public Bill setBill_status(int bill_status) {
        this.bill_status = bill_status;
        return this;
    }

    public int getBill_paytype() {
        return bill_paytype;
    }

    public Bill setBill_paytype(int bill_paytype) {
        this.bill_paytype = bill_paytype;
        return this;
    }

    public String getBill_startdate() {
        return bill_startdate;
    }

    public Bill setBill_startdate(String bill_startdate) {
        this.bill_startdate = bill_startdate;
        return this;
    }

    public String getBill_proname() {
        return bill_proname;
    }

    public Bill setBill_proname(String bill_proname) {
        this.bill_proname = bill_proname;
        return this;
    }

    public String getBill_birthday() {
        return bill_birthday;
    }

    public Bill setBill_birthday(String bill_birthday) {
        this.bill_birthday = bill_birthday;
        return this;
    }

    public String getBill_owner_name() {
        return bill_owner_name;
    }

    public Bill setBill_owner_name(String bill_owner_name) {
        this.bill_owner_name = bill_owner_name;
        return this;
    }

    public String getBill_enddate() {
        return bill_enddate;
    }

    public Bill setBill_enddate(String bill_enddate) {
        this.bill_enddate = bill_enddate;
        return this;
    }

    public String getBill_prounit() {
        return bill_prounit;
    }

    public Bill setBill_prounit(String bill_prounit) {
        this.bill_prounit = bill_prounit;
        return this;
    }

    public String getBill_desc() {
        return bill_desc;
    }

    public Bill setBill_desc(String bill_desc) {
        this.bill_desc = bill_desc;
        return this;
    }

    public String getBill_order_id() {
        return bill_order_id;
    }

    public Bill setBill_order_id(String bill_order_id) {
        this.bill_order_id = bill_order_id;
        return this;
    }

    public String getProduct_info() {
        return product_info;
    }

    public Bill setProduct_info(String product_info) {
        this.product_info = product_info;
        return this;
    }

    public String getBill_procount() {
        return bill_procount;
    }

    public Bill setBill_procount(String bill_procount) {
        this.bill_procount = bill_procount;
        return this;
    }

    public String getBill_promodel() {
        return bill_promodel;
    }

    public Bill setBill_promodel(String bill_promodel) {
        this.bill_promodel = bill_promodel;
        return this;
    }

    public String getBill_createtime() {
        return bill_createtime;
    }

    public Bill setBill_createtime(String bill_createtime) {
        this.bill_createtime = bill_createtime;
        return this;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.bill_proprice);
        dest.writeString(this.bill_invoicefilename);
        dest.writeString(this.bill_customer_name);
        dest.writeString(this.bill_money);
        dest.writeValue(this.company_id);
        dest.writeValue(this.bill_id);
        dest.writeValue(this.user_id);
        dest.writeValue(this.customer_id);
        dest.writeInt(this.bill_costdays);
        dest.writeInt(this.bill_status);
        dest.writeInt(this.bill_paytype);
        dest.writeString(this.bill_startdate);
        dest.writeString(this.bill_proname);
        dest.writeString(this.bill_birthday);
        dest.writeString(this.bill_owner_name);
        dest.writeString(this.bill_enddate);
        dest.writeString(this.bill_prounit);
        dest.writeString(this.bill_desc);
        dest.writeString(this.bill_order_id);
        dest.writeString(this.product_info);
        dest.writeString(this.bill_procount);
        dest.writeString(this.bill_promodel);
        dest.writeString(this.bill_createtime);
    }

    public Bill() {
    }

    protected Bill(Parcel in) {
        this.bill_proprice = in.readString();
        this.bill_invoicefilename = in.readString();
        this.bill_customer_name = in.readString();
        this.bill_money = in.readString();
        this.company_id = (Long) in.readValue(Long.class.getClassLoader());
        this.bill_id = (Long) in.readValue(Long.class.getClassLoader());
        this.user_id = (Long) in.readValue(Long.class.getClassLoader());
        this.customer_id = (Long) in.readValue(Long.class.getClassLoader());
        this.bill_costdays = in.readInt();
        this.bill_status = in.readInt();
        this.bill_paytype = in.readInt();
        this.bill_startdate = in.readString();
        this.bill_proname = in.readString();
        this.bill_birthday = in.readString();
        this.bill_owner_name = in.readString();
        this.bill_enddate = in.readString();
        this.bill_prounit = in.readString();
        this.bill_desc = in.readString();
        this.bill_order_id = in.readString();
        this.product_info = in.readString();
        this.bill_procount = in.readString();
        this.bill_promodel = in.readString();
        this.bill_createtime = in.readString();
    }

    public static final Creator<Bill> CREATOR = new Creator<Bill>() {
        public Bill createFromParcel(Parcel source) {
            return new Bill(source);
        }

        public Bill[] newArray(int size) {
            return new Bill[size];
        }
    };
}
